Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |linux_distribution

work/resources/system::|linux_distribution


Usage

|linux_distribution(name)

Parameters

↳ name: string

Return

↴ System


Return a linux operating system of the given distribution, of any version.

The distribution is the ID field of /etc/os-release (e.g. "ubuntu", "debian", "rhel", "fedora", "alpine", "nixos"), compared case-insensitively.